<?php if(is_array($datalist)) { foreach($datalist as $key => $value) { ?>
<a href="<?=$value['url']?>"><?=$value['name']?></a>
<?php } } ?>